<?php 
namespace app\index\model;

use think\Model;
use think\Db;
use think\model\SoftDelete;     //SoftDelete    软删除

class sms_log extends Model
{
	protected $member = "member";
	protected $type = [
        'status'    =>  'integer',
        'score'     =>  'float',
        'birthday'  =>  'datetime',
        'info'      =>  'array',
    ];

    /**
     * 查询验证码
     * @param string $log_type
     * @return array
     */
    public function getSmsInfo($condition)
	{
		if (empty($condition)) {
            return false;
        }
        $result = Db::name('sms_log')->where($condition)->order('log_id desc')->find();
        return $result;
	}
}